import datetime

class TZInfo(datetime.tzinfo):

    ZERO = datetime.timedelta(0)

    def __init__(self, tz_hours, tz_minutes, tz_sign):
        self.__tz_sign = tz_sign
        self.__tz_hours = tz_hours
        self.__tz_minutes = tz_minutes
        self.__offset = datetime.timedelta(minutes = tz_sign * (tz_hours * 60 
                + tz_minutes))
        if tz_sign == 0:
            self.__name = "UTC"
        elif tz_sign < 0:
            self.__name = "-%02d:%02d" % (tz_hours, tz_minutes)
        else:
            self.__name = "+%02d:%02d" % (tz_hours, tz_minutes)

    def utcoffset(self, dt):
        return self.__offset

    def tzname(self, dt):
        return self.__name

    def dst(self, dt):
        return TZInfo.ZERO

